<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="__TMPL__Public/assets/book_static/css/base.css" />
<link rel="stylesheet" href="__TMPL__Public/assets/book_static/css/info-reg.css" />
<title>图书库存管理系统</title>
</head>

<body>
<div class="title"><h2>图书信息编辑</h2></div>
<div class="main">
	<form target="_self" action="" method="POST" id="updateinfo">
	<input type="hidden" name="m" value="index">
	<input type="hidden" name="a" value="editeaction_book">
	<input type="hidden" name="bookid" value="{$data.bookinfo.id}">
	<p class="long-input ue-clear">
    	<label>ISBN：</label>
        {$data.bookinfo.isbn}
    </p>
    <p class="long-input ue-clear">
    	<label>书名：</label>
        <input type="text" name="bookname" id="bookname" value="{$data.bookinfo.bookname}" />
    </p>
	<p class="short-input ue-clear">
    	<label>数量：</label>
        <input type="text" name="booknum" id="booknum" value="{$data.bookinfo.booknum}" />
    </p>
	<p class="short-input ue-clear">
    	<label>位置：</label>
        <input type="text" name="location" id="location" value="{$data.bookinfo.location}" />
    </p>
	<p class="short-input ue-clear">
    	<label>入库时间：</label>
        <input type="text" name="addtime" id="addtime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="{$data.bookinfo.addtime}" />
        <span><em>*</em>请输入正确的时间格式</span>
    </p>
    <p class="long-input ue-clear">
    	<label>出版社：</label>
        <input type="text" name="publisher" id="publisher" placeholder="出版社" value="{$data.bookinfo.publisher}" />
    </p>
    <p class="long-input ue-clear">
    	<label>价格：</label>
        <input type="text" name="price" id="price" value="{$data.bookinfo.price}" />
    </p>
    <!--
    <p class="short-input ue-clear">
    	<label>备注：</label>
        <textarea placeholder="请输入内容"></textarea>
    </p>
	-->
	</form>
</div>
<div class="btn ue-clear">
	<a href="javascript:$('#updateinfo').submit();" class="confirm">确定</a>
</div>
</body>
<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/jquery.js"></script>
<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/common.js"></script>
<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/WdatePicker.js"></script>
<script type="text/javascript">
$(".select-title").on("click",function(){
	$(".select-list").toggle();
	return false;
});
$(".select-list").on("click","li",function(){
	var txt = $(this).text();
	$(".select-title").find("span").text(txt);
});


showRemind('input[type=text], textarea','placeholder');
</script>
</html>
